package com.ydy.user.mapper;


import com.ydy.common.model.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface UserMapper {

    User getUserByName(@Param("userName") String userName);

    Set<Role> getRoleByUserCode(@Param("userCode") String userCode);

    Set<Permissions> getPermissionsByRoleCode(@Param("roleCode") String roleCode);

    List<Menu> queryUserMenus( @Param("userCode") String userCode);

    List<Dict> queryDictList();
}
